package com.itcast.activiti.event;

import com.itcast.activiti.domain.AddSign;
import lombok.Getter;
import lombok.experimental.FieldNameConstants;
import org.springframework.context.ApplicationEvent;

@Getter
@FieldNameConstants
public class AddSignEvent extends ApplicationEvent {
    /**
     * 租户id
     */
    private final String tenantId;
    /**
     *
     */
    private final String businessKey;
    /**
     * 加签人
     */
    private final String assignee;
    /**
     * 加签类型  BEFORE 前加签 AFTER 后加签
     */
    private final AddSign addSign;

    public AddSignEvent(Object source, String tenantId, String businessKey, String assignee, AddSign addSign) {
        super(source);
        this.tenantId = tenantId;
        this.businessKey = businessKey;
        this.assignee = assignee;
        this.addSign = addSign;
    }
}
